<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<title>骨医快线</title>
	<link rel="stylesheet" href="../../css/mui.plus.css" />
	<style>
		.center-wrap {
			padding: 40px;
		}
		.abs-center {
			text-align: center;
		}
		.abs-center>p {
			font-size: 17px;
			color: #000;
		}
		span.pat-badge {
		    padding: 0 3px;
    		margin-left: 5px;
		    border: 1px solid #ff924e;
		    border-radius: 5px;
		    font-size: 12px;
		    color: #ff924e;
		}
	</style>
</head>
<body>
	<header class="mui-bar mui-bar-nav pri-bar">
	    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	    <h1 class="mui-title">商家详情</h1>
	</header>
	
	<div class="mui-content" id="merchant">
		<div class="center-wrap">
			<div class="abs-center">
				<p>小麦医疗器械</p>
				<p><span class="pat-badge">已认证</span></p>
			</div>
		</div>
		
		<div class="oe-divide-block"></div>
		
		<ul class="mui-table-view">
			 <li class="mui-table-view-cell"><p>地址</p></li>
	         <li class="mui-table-view-cell">北京市宣武门外大街海格大厦</li>
		</ul>
	</div>
	
	<script id="tmp-merchant" type="text/html">
		{{if data}}
			<div class="center-wrap">
				<div class="abs-center">
					<p>{{data.sell_name}}</p>
					<p><span class="pat-badge">{{data.sell_auth_status}}</span></p>
				</div>
			</div>
			
			<div class="oe-divide-block"></div>
			
			<ul class="mui-table-view">
				 <li class="mui-table-view-cell"><p>地址</p></li>
		         <li class="mui-table-view-cell">{{data.sell_address}}</li>
			</ul>
		{{/if}}
	</script>
	
	<script src="../../js/mui.min.js"></script>
	<script src="../../js/app.js"></script>
	<script src="../../js/lib/template.js"></script>
	<script>
		;(function($, a){
			var wv,
				html,
				sell_id,
				tmpData,
				merchant = document.getElementById("merchant");
				
			$.plusReady(function(){
				wv = plus.webview.currentWebview();
				sell_id = wv.sell_id;
				
				a.net.get('c_sp_seller/show', {sell_id: sell_id}, function(data){
					if(data && data.code === '100'){
						tmpData = data;
						html = template('tmp-merchant', tmpData);
						merchant.innerHTML = html;
					}
				});
			});
		}(mui, app));
	</script>
</body>
</html>